You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I remove Yarascan from osx

Hello



the last 2 days I notices that I have an app called Yarascan running on my Mac. According to activity Monitor it scans my Mac Download directory and more. Everytime I end the process it restarts after some time (1 hour or).

If I'm not connected to the internet it doesn't appear.


I suppose I do have a virus checking from outside.


my problem I don't know which app activates Yarascan.


It is located here


/System/Library/CoreServices/MRT.app/Contents/XPCServices/YaraScanService.xpc/Co ntents/MacOS/YaraScanService


It is not the original Appe MRT app which is on another place.


Deleting the whle MRT.app or any other file inside doesn't work nor with SUDO nor rm -rf or whatever.


Any help is appreciated quickly please.

iMac, OS X Mavericks (10.9.4)

Posted on Jun 21, 2018 11:05 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 23, 2018 2:24 AM

Apparently problem solved…


see below


I don't know how the MRT.app has changed.

I suppose it is installed via Internet access!!!


Here what I noticed and did:

  • my iMac become extremely slow
  • activity monitor shows an app called YaraScanService creating a very big file several (under memory) >50 GB
  • it was harvesting all data (documents, downloads…) on my Mac
  • I noticed that no data is being sent out to the internet by YaraScanService
  • perhaps another app did but I didn't notice
  • to be secure I stopped WiFi and pulled the internet cable
  • I just killed the process (force end process) in activity monitor
  • but after an hour or so YaraScan did reappear… I suppose as it is diguised as Apple MRT.app it just restarts every time MRT is called up.
  • I did install the latest version of Avira Virus checker and switched off Internet access and did a full scan on my computer, this took over 26 hours to terminate (big HD several TB)
  • it found 206 critical files which I all deleted though only 2 ancient virii, from 2014, the rest where mostly libs in bitcoin apps (I do not do any bitcoin mining, just installed some apps to understand what bitcoin mining does)
  • deleting Yarascan or the MRT.app does not work
  • the Antivirus app didn't report YaraScan as risk because YaraScan is freely available to check and scan your computer (forensic research)


here's how to get rid of YaraScan

  • I rebooted my Mac via OSX installer USB stick (made some time ago with DiskMaker X High Sierra) without internet access
  • Instead of installing the OSX I went into terminal with these commands


  1. did go to the right volume with CD /Volumes/MacHD
  2. cd /System/Library/CoreServices/MRT.app/Contents/XPCServices/YaraScanService.xpc/C o ntents/MacOS/YaraScanService
  3. ls -l


the ls command is just to check if it is still there


  1. cd /System/Library/CoreServices/
  2. ls -l (for seeing if MRT.app is there)
  3. sudo rm -rf MRT.app
  4. ls -l (recheck if it's gone)


reboot the Mac without installing anything


  • activity monitor didn't show any YaraScanService
  • in Terminal I did these commands to do critical updates…(after reconnecting to internet)
  1. sudo softwareupdate background-critical
  2. tail -f /var/log/install.log


This commands did reinstall Apple's MRT.app

I did runn this for the whole night.


Now everything seems to be OK.


My main concerns are:

? How did the YaraScan file got on my computer? I read a lot about hacking, security, media misuse (FB, Twitter…) etc. but I never install apps from outside official APP-store

? Why didn't the antivirus app noticed it?

? Or by that way Apple's own security system? Hey Apple are you listening?

? How is it possible to replace Apple's MRT app this easily? MRT is used to check for Malware? Apple are you reading?

? Can this app really be installed by visiting internet sites?

? The NSA and most governments are building apps to remotely check or access it's citizens computers. (Even though it was ruled yesterday in the USA that it's not allowed doing so??) Also most European governments did officially anounce developments of such apps.

Can they doing this? The YaraScan appeared this 8th of June.

Similar questions

15 replies
Question marked as Top-ranking reply

Jun 23, 2018 2:24 AM in response to cyberhusky69

Apparently problem solved…


see below


I don't know how the MRT.app has changed.

I suppose it is installed via Internet access!!!


Here what I noticed and did:

  • my iMac become extremely slow
  • activity monitor shows an app called YaraScanService creating a very big file several (under memory) >50 GB
  • it was harvesting all data (documents, downloads…) on my Mac
  • I noticed that no data is being sent out to the internet by YaraScanService
  • perhaps another app did but I didn't notice
  • to be secure I stopped WiFi and pulled the internet cable
  • I just killed the process (force end process) in activity monitor
  • but after an hour or so YaraScan did reappear… I suppose as it is diguised as Apple MRT.app it just restarts every time MRT is called up.
  • I did install the latest version of Avira Virus checker and switched off Internet access and did a full scan on my computer, this took over 26 hours to terminate (big HD several TB)
  • it found 206 critical files which I all deleted though only 2 ancient virii, from 2014, the rest where mostly libs in bitcoin apps (I do not do any bitcoin mining, just installed some apps to understand what bitcoin mining does)
  • deleting Yarascan or the MRT.app does not work
  • the Antivirus app didn't report YaraScan as risk because YaraScan is freely available to check and scan your computer (forensic research)


here's how to get rid of YaraScan

  • I rebooted my Mac via OSX installer USB stick (made some time ago with DiskMaker X High Sierra) without internet access
  • Instead of installing the OSX I went into terminal with these commands


  1. did go to the right volume with CD /Volumes/MacHD
  2. cd /System/Library/CoreServices/MRT.app/Contents/XPCServices/YaraScanService.xpc/C o ntents/MacOS/YaraScanService
  3. ls -l


the ls command is just to check if it is still there


  1. cd /System/Library/CoreServices/
  2. ls -l (for seeing if MRT.app is there)
  3. sudo rm -rf MRT.app
  4. ls -l (recheck if it's gone)


reboot the Mac without installing anything


  • activity monitor didn't show any YaraScanService
  • in Terminal I did these commands to do critical updates…(after reconnecting to internet)
  1. sudo softwareupdate background-critical
  2. tail -f /var/log/install.log


This commands did reinstall Apple's MRT.app

I did runn this for the whole night.


Now everything seems to be OK.


My main concerns are:

? How did the YaraScan file got on my computer? I read a lot about hacking, security, media misuse (FB, Twitter…) etc. but I never install apps from outside official APP-store

? Why didn't the antivirus app noticed it?

? Or by that way Apple's own security system? Hey Apple are you listening?

? How is it possible to replace Apple's MRT app this easily? MRT is used to check for Malware? Apple are you reading?

? Can this app really be installed by visiting internet sites?

? The NSA and most governments are building apps to remotely check or access it's citizens computers. (Even though it was ruled yesterday in the USA that it's not allowed doing so??) Also most European governments did officially anounce developments of such apps.

Can they doing this? The YaraScan appeared this 8th of June.

Jul 10, 2018 8:26 AM in response to cyberhusky69

YaraScanService is Apple's malware scanner. You do NOT want to try to remove it. It can slow down your mac temporarily as it is scanning all your files for malware. Just let it run it's course, it can take a while. This scanning can happen anytime after a system update, or when malware profiles are updated. It is a part of MRT, which you also do not want to remove or tamper with.

Jul 19, 2018 9:09 AM in response to AMSTUDIO1

Hi!

I'm writing to you from Italy and I'm sorry if my English isn't perfect.


I have the same problem and i tried to follow your little guide but at the point n. 1 :

shut down your mac. boot it in safe mode by pressing and holding down control + alt + R.

the sequence of buttons is different to put MacBook in "Safe Mode" (I have to press "Shift" for a lot of seconds) and at the point n. 2:

open terminal and disable security by $: csrutil disable; reboot

Terminal tells me that i have to do it with the MacBook set in "Recovery Mode" not in "Safe Mode".


Recovery Mode and Safe Mode are different, in Recovery Mode Terminal appears like this: User uploaded file

that's different from the classic windows of Terminal.


I stopped my attempt here.


So, what can i do? Can you help me? Please, I'm desperate.


Thanks,

Federico from Italy

Jun 23, 2018 2:20 AM in response to cyberhusky69

hi after a 3 hours research with moderate success, I've found something which solved it:


  1. shut down your mac. boot it in safe mode by pressing and holding down control + alt + R.
  2. open terminal and disable security by $: csrutil disable; reboot
  3. when it boots normally: open terminal and type $: sudo launchctl unload /System/Library/LaunchDaemons/com.apple.MRTd.plist
  4. then $: sudo rm -R /System/Library/CoreServices/MRT.app
  5. You will be good to go.

Good luck

Jul 13, 2018 11:54 PM in response to Sweejak

Sweejak wrote:


Do your commands remove the entire MRT folder of just target the Yaroscan?

Yes I remove the complete MRT.app because it is not the orginal MRT.app anymore. A new macOS setup does NOT include XPCServices with YaraScan inside it's content.

After removing the MRT.app (all without wifi annd without ethernet) reboot your Mac.

Reconnect to the internet and type these commands in terminal window:

  1. sudo softwareupdate background-critical
  2. tail -f /var/log/install.log


They do reinstall critical updates including the MRT.app. Without the YaraScanServices.

But it takes time I left it 24 hours running to be sure!

Jul 11, 2018 5:12 AM in response to michelbinkhorst

I know what YaraScan is. It is an open source forensic tool to check your computer of strange behaviour. It is not a malware scanner. It scans anything you want even deep inside protected OS parts and libraries. But it does not find malware by itself. You have to check and search HEX dumps YaraScan creates to find any malware.

Because it is open source it is used by malware to scan your system for lucrative data.

I don't think Apple uses YaraScan they do have Spindump for their search.

I did a complete combo reinstallation of High Sierra 10.13.6. But their is no YaraScan ins MRT.app directory as I found it.

I checked my other Macs too. NO YaraScan.

Also my backups didn't have YaraScan.

MRT is the malware checksystem of Apple, I'm sure YaraScan is NOT part of it or macOS.

If you read my post above, YaraScan is hidden inside MRT.app directory so it starts every time without the system noticing.

Jul 12, 2018 11:33 AM in response to michelbinkhorst

I had significant lag after upgrading from OS Yosemite to OS High Sierra this week, and as I sought the source, I noticed YaraScanService was working overtime in my Activity Monitor.


That is what led me to this post.


What I read in the original post caused me concern initially, as I'm sure it will for others, but what I failed to do at that point in time was to step back and ask myself why this was the only post regarding YaraScan in all of Apple discussions.


It seems a fair, and important, question to consider.


Also, I should have taken note that one of the recommended "fix" posts suggests using the "control" key to boot up in Safe mode, which is not how you boot up in safe mode. Apple uses the "command" key to boot up in safe mode, not "control." While this may be dismissed as a semantical matter by some, for those using keyboards that include a proper Apple "command" key, the difference is rather important. The result of holding "control-alt-R" at startup on a proper Apple keyboard accomplishes nothing but a standard startup.


Regardless of whether the YaraScanService activity was causing my computer to lag, I wanted the lag gone. So, I decided to go ahead and erase my drive and do a clean install of High Sierra in Recovery mode. Once the install was complete, I restored all my content using Time Machine (all the same applications and docs as before, nothing left out). At first, my Activity Monitor showed a lot of "mdworker" and "mds" scanning going on, but that was just Spotlight doing it's thing. If YaraScanService was busy at the same time, I didn't notice it in the Activity Monitor, and I haven't noticed it since. I left the system to do it's thing overnight, and today I still haven't noticed any YaraScanService activity.


The lag I meant to eliminate, however, returned despite the clean install.


And … I have since discovered the true source of that ridiculous lag — The Magic Mouse.


In fact, it was the two-finger swipes I was using to switch between full-screen apps that caused all that trouble after upgrading to High Sierra. Someone else will have to explain why. Perhaps this 2011 mouse isn't compatible. All I know is that every time I swiped with two fingers on the mouse, the whole computer got bogged down in a lag that lasted 20 seconds or more. The mouse would move the cursor, but that's all. Clicking accomplished nothing. After 20 seconds or more, the screen would finally swipe to the next desktop. After that, although the lag diminished, it remained, and it would worsen if I did the two-finger swipe again.


The fix was easy — I disabled the mouse's swipe setting in System Preferences (System Preferences>Mouse>More Gestures).


The result: No more lag in OS High Sierra.


As for the YaraScanServices issue, from what I've read elsewhere, I'm inclined to agree with michelbinkhorst.


It seems a bad idea to start messing around with MRT based on one post. Granted it's recent, but this is the one and only post that comes up when you search Apple discussions for "yarascan." So, it's only responsible to ask, if malicious malware is currently exploiting Apple's use of YaraScanService, why haven't more Apple users posted about it?


I don't intend to insult or dismiss or negate anyone's point of view on this. It may well be that there's something to worry about with regard to the "YaraScanService" activity I and others have noticed. But it seems only prudent to first obtain official verification from Apple about that problem before mucking around with MRT in the OS.

Jul 12, 2018 10:40 PM in response to Teej_LA

Teej_LA wrote:


As for the YaraScanServices issue, from what I've read elsewhere, I'm inclined to agree with michelbinkhorst.


It seems a bad idea to start messing around with MRT based on one post. Granted it's recent, but this is the one and only post that comes up when you search Apple discussions for "yarascan." So, it's only responsible to ask, if malicious malware is currently exploiting Apple's use of YaraScanService, why haven't more Apple users posted about it?


I don't intend to insult or dismiss or negate anyone's point of view on this. It may well be that there's something to worry about with regard to the "YaraScanService" activity I and others have noticed. But it seems only prudent to first obtain official verification from Apple about that problem before mucking around with MRT in the OS.

I'm still not convinced that YaraScan is part of macOS. When I noticed the YaraScan activity on my iMac I checked my Macbook which has the same macOS and my Mac mini server (same macOS). They don't have the YaraScan service or app. The MRT.app package content just don't show any YaraScanService. Even the XPCServices aren't in the MRT.app package. They're on another place. But the XPCServices that showed up on my iMac in MRT.app only contained the YaraScanService. That's the malware trick, hide as system file.

I did set up my iMac completely NEW from a combo installation:

NO XPCservice files in MRT.app and NO Yarascan.

My last backup contained the YarascanService too but NOT the earlier backups.

Jul 17, 2018 1:21 PM in response to cyberhusky69

I'm still not convinced that YaraScan is part of macOS. When I noticed the YaraScan activity on my iMac I checked my Macbook which has the same macOS and my Mac mini server (same macOS). They don't have the YaraScan service or app. The MRT.app package content just don't show any YaraScanService.


Thank you very much cyberhusky69 for all the great information on this topic. I learned a lot reading cyberhusky69's posts and very much appreciate the help.


After reviewing my own computer's contents, and after reviewing the procedure I followed to reinstall High Sierra on my iMac desktop, I now share cyberhusky69's doubts about YaraScanService being a part of MacOS.


As I stated in a prior post, I noticed YaraScanService in my activity monitor after my first attempt to upgrade from Yosemite to High Sierra. Following that upgrade effort, I started experiencing serious lag/slowdown on my desktop, which is the only reason I bothered to look at my activity monitor.


How did YaraScanService get there and why was it suddenly active? My guess is that it was part of one, or both, of the two different Mac virus-scan software programs that I stupidly installed at some point during the past seven years, and later forgot about. Although these two virus-scan programs were turned off, they remained installed on the HD, waiting for something to turn them on. Apparently that something was my first attempt to upgrade from Yosemite to High Sierra. Something about that unclean install of the new OS triggered one or both of those idle virus-scanning programs, I guess, which probably is what let YaraScanService out of its cage to eat up my RAM.


I tried a number of recommended fixes before finally deciding to reboot in Recovery Mode and erase the hard disk. I did a quick, single wipe of the HD, then reinstalled OS High Sierra, then restored all content using Time Machine.


It's important to emphasize that I omitted NOTHING from this restore, which in hindsight seems kind of dumb considering those two virus-scan programs I forgot about. However, I've since looked at everything (visible and invisible files) on the HD and neither virus-scan program exists on the HD despite my full restore from Time Machine.


What the?


I assume that, because I wiped everything prior to the reinstall of High Sierra, something in High Sierra was then able to block the two virus-scanning programs from being restored by Time Machine. That's merely a guess, but the only possibility I can imagine.


I'll leave it to someone more knowledgeable than myself to explain whether that's realistic.


All I know for sure is that the virus-scanning programs, and YaroScanService, are gone from my iMac 27" desktop computer.

Aug 26, 2018 6:47 AM in response to cyberhusky69

What worked for me was emptying my Downloads folder. Apparently, yarascan checks downloads folder after every restart. If the Downloads folder is full, yarascan will take time and resources to scan that folder. The amount of time yarascan runs is directly related to number of files in Downloads Folder. I had a bunch of archive files, installers, audio and video files in my Downloads folder, and yarascan ran about 8-10 minutes with each new restart. On a laptop running on battery, it generally used up 10% of battery before it finished scan. I completely emptied Downloads folder, and no more yarascan on startup. Emptying Download Folder will not remove yarascan from system. If I move files back into Downloads Folder and restart, yarascan will run on next restart. For, me (verified on 2 different machines), yarascan is directly related to files in Downloads Folder.

How do I remove Yarascan from osx

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.